package jtk.project4.fleet.field;

import jtk.project4.fleet.domain.Equipment;
//import jtk.project4.fleet.domain.Equipment;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
//import nl.coderight.jazz.form.field.ComboField;
//import nl.coderight.jazz.form.field.NumberField;
//import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;

public class SpecificationsPhysicalProperties extends GroupControl<Equipment>{
	private TextField WeightField;
	private TextField LenghtField;
	private TextField WidhtField;
	private TextField HeightField;
	private TextField WheelbaseField;
	
	public SpecificationsPhysicalProperties(String bindID){
		setTitle("header.Specifications");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	private void createFields(){
		WeightField = new TextField("Weight", 15);
		LenghtField = new TextField("Length", 15);
		WidhtField = new TextField("Widht", 15);
		HeightField = new TextField("Height", 15);
		WheelbaseField = new TextField("Wheelbase", 15);
	}
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())

		.addLabel("label.Weight")			.addField(WeightField)
		.addLabel("label.Lenght")			.addField(LenghtField, Resize.HORIZONTAL)
		.addRow()
		.addLabel("label.Widht")			.addField(WidhtField)
		.addLabel("label.Height")			.addField(HeightField, Resize.HORIZONTAL)
		.addRow()
		.addLabel("label.Wheelbase")		.addField(WheelbaseField)
		;	
	}
}
